package com.snow.vpnclient.data;

import com.snow.vpnclient.util.Logger;

/**
 * @author liufq
 * @since 2023-03-12 23:18:12
 */
public enum ScanHelper {

    INSTANCE;

    private String scanResult;

    private boolean flag;

    public void setScanResult(String scanResult) {
        flag = true;
        Logger.d("获取扫码结果：" + scanResult);
        this.scanResult = scanResult;
    }

    public String getScanResult() {
        if (flag) {
            flag = false;
            return scanResult;
        } else {
            return null;
        }
    }




}
